faster filter(Function, Vector)

I don't know how you guys feel about bunches of optional parameters, but it might be good add a size hint for the result.

Would that be overkill?
Merge pull request #2183 from WestleyArgentum/patch-8

more memory efficient filter(Function, Vector)