do not fail if vtable is setup twice
fix entity binding in vtables

In case of an overwritten entity, only the entity of the superclass was
put in the vtable, even if the real entity with the code was more than 1
superclass away.
make it possible to query index_of_first_method