Small cleanups throughout IdDict
Small but not comprehensive cleanups, including formatting changes. e.g use range based for loops, string::empty instead of string == "" or size()=0.
Small but not comprehensive cleanups, including formatting changes. e.g use range based for loops, string::empty instead of string == "" or size()=0.