Text this: Constructing categories and setoids of setoids in type theory