Allow null-matching on enums

(tests coming in another commit, needed an issue number)