While handling `iorder` on states, skip non string entries.
Also skip non dictionary entries.
Merge pull request #6854 from s0undt3ch/hotfix/fix-pydsl

While handling `iorder` on states, skip non string entries.