construct GeometryType from string

Now we can print a geometry type using its __str__ method, it is only natural to construct a GeometryType from a string. This should be implemented in the form of a constructor to GeometryType on the C++ side.