Add filters for core classes

An exploratory attempt at fixing #187. A lot more work needs to be done if we decide to actually implement these. This is the bare minimum.