Add support for rails 4 postgres adapter

Rails 4 expects the type to be an object rather than a string, and spatial_adapter monkeypatches over that.