misc code cleanup, write a single aiMatrix4x4->mat4f function and use it