More granular check for ActiveSupport::HashWithIndifferentAccess
Move hash class determination to Support