[Truffle] Implement Class#inherited and call it when a subclass is added.