Update for AR3 and AR4 compatibility

-Use to_wkt_ ~>0.1.3 gem
-Fix SpatialColumn#type_caste_code for rails 3