math: Appiled some DRY.

Migrated to auto in a few places in vec.
math: Simplified naming for a few loop vars.
math: Changed a loop to std::transform in vec's conversion ctor.
math: Added normalized vec func.