Fix typechecker problems exposed by signedjson 1.1.2.