Fixed the generation of copy ctors when mutiple inheritance is involved