add context_hash and field_hash methods, other minor fixes

Mostly this gives you the context_hash and field_hash methods to dump those parts of an exception easily.  It also fixes a minor doc niggle and a 5.17.1 warning.  Yay?