Added array access to vec3 and quat

A minor change, mainly to make the above classes integrate nicer with glMatrix, e.g. mat4.translate(modelMatrix, modelMatrix, [rigidbody.position.x, rigidbody.position.y, rigidbody.position.x]) now becomes mat4.translate(modelMatrix, modelMatrix, rigidbody.position.toArray())