Fix slot numbering.
Accumulate implementedInterfaces.