Get the accessor from the right scope (+ a bit code cleanup)

This should fix the first half of the Reflection/parent issue.