adds enforce_func capability to returned patents, which only returns patents that pass a certain pat->boolean function