Feature/points front back

Fix return type of points_front and points_back: they should return a const or non-const reference to the geometry's first and last point, instead of returning a copy of the point.