Replace all uses of SortedDict with collections.OrderedDict

Fix grammar in comments

Move custom OrderedDict to loading.ModelDict