Thanks! Your debugging info was extremely clear and allowed
me to pinpoint the problem (at least, I'm pretty sure ...);
attached is a new version.
BTW you will need a line like this somewhere:
(define-compatible-function-alias 'string-to-syntax 'syntax-string-to-code)