Fix JAVA_Object to GEOMETRY type conversion