Added unit test for magnitude in Vector, moved dispatch to bottom.