Made it possible to specify private typedefs which aren't inherited when
including YAML.