Similar Items: Idempotents in intensional type theory