[wip] TypeRepository#map