Small note: Python's standard dict has been ordered since ~3.7
E.g. https://mail.python.org/pipermail/python-dev/2017-December/1...
E.g. https://mail.python.org/pipermail/python-dev/2017-December/1...
From an implementation perspective, doing it for the ordereddict special case is much simpler.