Fixing type registration issues with Rails 4.2