Modified DefaultConfigObjectFactory to auto-cast when the configuration already contains the right type, instead of trying to parse.