ActiveSupport 4.x

Support the DisallowedType error in ActiveSupport 4.x in addition to the one from 3.2.x (this fixes an error that occurs when updating to ActiveSupport 4.x).