Resolves #772 to allow access to inherited vars

Bubbles up the parent chain to see if an inherited variable should be
included when building the dot access list.
Merge pull request #796 from Heathtech/master

Resolves #772 to allow access to inherited vars