Fixes #490 and #472.
Fixes the issues pointed out in the XRRay constructor as well as providing an explicit definition of the term "normalize" (which feels a little out of place in the spec, but I'm not really sure how to say "Just do the normal math thing here." is W3C-ese)