Similar Items: Constructing categories and setoids of setoids in type theory