Add ActiveSupport::Inflector.constantize_only

This works like ActiveSupport::Inflector.constantize, but additionally
checks the constant against a provided whitelist.