Tests and fix for Vector.forEach so it uses the correct context.