Fix second major bug in spatial type autodetection and default srid.