Fixed hascode and line constructor in GeoShape