Add object diffs to error output

Also fixes util.logError tests to test util.getErrorMessage
instead where appropriate
Merge branch 'master' into geezer
Fix object diff unit tests

Some environments have no function names or stack traces
Merge branch 'master' into geezer