fixed templated method filters, I think.

@crbates would you mind taking a look at this since I think that it solves #248