I found the (trivial) problem in my script which is exposed by a couple of things:
  - The definition of rPrime is inconsistent with the comment, which
    points to the second aspect of the problem,
- There is no function
        called "qvr" in the source -- although there was one in a prior
        version of the notebook which I'd run, leaving it defined when it
        shouldn't have been defined.
It would be nice if there were a key mapping to kill and start the local kernel, or which would just execute Quit[] to help avoid this kind of thing.