misc fixes + improved Debug::dump to support simple file syntax