Fix lookup within parents' scope (Issue#23)

See #23 for more details.