Add rails-4-1 to travis.yml
Fix PostgreSQL array type casting