Correctly detect ActionDispatch::Flash::FlashHash objects, as they are no longer descendant from Hash.