Handle state delcarations not formed as a list, Fix #6544
Merge pull request #6557 from basepi/stateerror6544

Handle state declarations not formed as a list, Fix #6544