Add a map() method for vectors.

Signed-off-by: Aaron Jacobs <atheriel@gmail.com>