improved event listener for Base that handles key paths containing other Base objects.