Add getters to MatcherPath and MatcherPath.Element

Goal: make them interfaces, again.