Add naive implementation of vector.forEach