Prepare an object for printing to YAML diagnostics.

Looks up source, calculates diffs of actual/expected values, and so on.