Fix some error situations
Fix a case VCS is picky about, add convert2string to transaction, and improved debug message formatting