Refactored Geometry::fromText() and fromBinary()