Polygon: Merging trunk and release branches. Added tests and refactored data/traits/concept classes for point/interval/segment. Removed point_3d point/interval/segment. Simplified transform (3D->2D). Fixed bugs: #6366, #7678.