cleanup like_any with some arel

Fixes #3701
Dont set preference on assets:precompile

Avoid opening a db connection when running assets:precompile to help
users to deploy their apps to heroku

Fixes #3703
Use alias_attribute, not alias_method, for CreditCard#cc_type

Related to #3704
Convert CreditCard#cc_type when it comes in from jquery.payment