Build selected test suites and benchmarks only

Issue #1451. Passes the extra arguments to 'cabal test' or 'cabal bench'
to the build phase so that only the requested test suites or benchmarks
are built.