Fix #8773: allow syntax error state.foo in requisites with a warning.

Should fix #8773.

This prevents silent ignore of an easy syntax error (refering a state by its full name instead of only using the state type).

Intergration are altered to test this fact, and I added an error case in theses states also.