Improve printing for funcs and blobs

Blobs in particular: if the first few bytes can be represented in
printable ASCII, that is used instead of a hexadecimal representation.
Fix tracebacks

Finally they seem to work right!