Use select_clause/where_clause generics for plain vectors too
Move sample-related tests into their own file, make sure filtering works