Fix bugs with inherits spec.
Fix most of the final bugs with specs and inherits js.