Add one-argument form of gather and pick, plus tests.