Extract ABI-common vtable entry allocation code and fix indexing of ignored entries.