Change matrix_test to remove floats.Apply

Replaced the Apply call with a small function.  Also, go fmt changed a
few other files.