CSPACE-6277: Added initially-proposed fix for dollar sign-in-refName import bug. Tweaked XMLReplay-based tests.