Ensure that properties are iterated in a consistent order

This guarantees that any warnings are also in a predictable order; this
is necessary for tests to reliably pass under 5.18 and above, which
randomize hash ordering.
Releng for 0.21