Fixed extended classes and implemented interfaces are wrongly merged.