Apply metadatamap to resources inside collections

- Per @netiul