Fix #119; cache abstract filter's class

Like #121, but merging into v1.1.0 instead of master.