Make magnitude(), dimension() constexpr
Add test for magnitude(), dimension()