Fixed bugs in mat4 inversion code.

All works great, appears ready to go on all fronts.