allow matching on getters (closes #3088)