Added support for entity-level policies in YAML