'Generate human-readable dict for YAML.'

def to_dict(self):

    if self.concrete:
        return syaml_dict([('version', str(self[0]))])
    else:
        return syaml_dict([('versions', [str(v) for v in self])])
