[bugfix][GeometryTyp] Use constructor for GeometryType with topology id.
This removes the warning due to deprecated constructor of GeometryType being used. The change could potentially break code.
This removes the warning due to deprecated constructor of GeometryType being used. The change could potentially break code.