PostGIS – How to Identify Geometry Types