Properly set the constructor for Vector subclasses.
Simplify dispatch of forEach.