More granular check for ActiveSupport::HashWithIndifferentAccess

This might do the trick!

I didn't see any tests for this in config. I'm not sure how to test the presence of a constant for two scenarios, but if you give a suggestion I can try to implement a test for this.