Adjusted Definition handling functions; Renamed KeysValues validator to KeyValues; changed method of casting default values