TINYGL: Done several optimizations to the maths code.