Stop adding _inherited array to all classes

This was hardcoded as soon as a new class was created, but the reliance
made it more difficult to use native js classes where expected. To solve
this, this array is now created dynamically when it is needed (which is
when it is subclassed).