[transformers] tell container that first argument is collection.
Add tests for attachment type