Compatibility between Hash and HashWithIndifferentAccess

This addresses an issue with hashes of type ActiveSupport::HashWithIndifferentAccess not being able to be cast by the TypeCaster class.