more verbose type errors, cleaner type switches
add randRune to tests
add Pid