ResolveName now searches parent scopes.