Add signatures to Dictionary, and fix unhex() API in Utils to be a little safer.