Resolves #772 to allow access to inherited vars

As mentioned in issue #772, there is a minor issue when attempting to access a variable from a child object in which the parent contains the actual variable's definition.

It can be resolved either with the compiler change I suggest, or by adding something like "some_var = some_var" in the child's code somewhere (assuming that "some_var" was actually defined in the parent object.)

My solution adds a very small amount of compilation overhead and may not be an ideal fix, but I think it is sufficient.  Let me know your thoughts otherwise.