Do not assume that RecType#parts is in a particular order

The code used to assume that for a RecType rt and one of its parts p
rt.parts[p.nr - 1] == p ; that is patently not true