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

@kjkuan this fixes the issue which I emailed you about, ie, the failing pydsl tests. Can you confirm this is the best approach to the problem please?