work-around for scala generated class names making getCanonicalName chok...

getCanonicalName has problems. Many of our scala tests were failing to write out their coverage data because of this.