Adds a variant-type filter

Also correctly calculates true/false/pos/neg etc for SVs.
I don't think the `sv` prefix is useful here -- what other kinds of numbers would this return?