fix _safe_set calls in HierDictDocument