Fix issues with sorting of class ids (Bug 3885) and ingress classes (Bug 3896)
plus add support for nested classes (Bug 4274) even though they can't
be configured yet.
But wait there's more. Add a rate field since it is there and might
be useful as well.