prevent quat.to_matrix() from allocating memory

Hello, I noticed quat.to_matrix() was allocating GC memory in my debug build.

Since I'm calling it thousands of times per frame, memory is collected many times a second yielding a noticeable performance hit.

I simply reverted the range assignments to normal scalar assignments and the problem is gone.