Adding `type` to collections