Fixes bugs with inherited names.

Inheriting from a def crashed identifierresolutiomn.
This is now fixed.  The compiler now generates a
syntax error message.

If the pragma ObjectInheritance is specified, the
old behavior of generating correct code is preserved.

Inheriting from a method now works, with the inherited
names visible to the inheriting object.