fix id tag marshalling in collections