toBytes fixes

md5 crashing
truncated shift left &<<
MD5 in Pure Swift
general MD5 fixes, tests update