Revamped basic filter code

Made expression be turned into instance of Filter compliant object.
Made filter resize its destination output
Clean up typedefs and tests