Add relative error, mat-sum, mat-mul and mat-div.

Fix normalization to only skip if length is zero.
Add some matrix and utility tests.

Explore single-float bit distribution more uniformly in random tests.