Fix -tags processing in packagesAndTestargs

Also, added a couple of tests. More to come later.

Fixes #45