fix a bug in extract super class multi, in the case where the classes implement an interface to be pulled up : was failing when selecting B instead of A (needed to copy the reference before it was deleted).

In the test3 for that operation, test the case when you select A and also the case when you select B.