top level fatal error handling, report error for xml/json requests without triggering render error
Referent#container_type_of_thing, make more robust and consistent with #to_citation. Yes, not very DRY, duplication between here and #to_citation, sorry
fulltext template, hackily handle nil container_type_of_thing in container-level page only warning