Fixed EntityAccess test, which worked due to the ugly EntityManager heisenbug.
Added a function to convert EntityManager diagnostics to YAML.
Minor style change.