Decoding a YAML file to a class which has inheritance does not work, it only decodes the parent class properties.