fix bug allowing Enums to be extended via multiple inheritance