Fix ray iterator to use the right vectors and clean up TraceDemo's render loop.