Changed JSON/YAML codecs to only load the XS version if it is available