scripting: allow parsing of keywords at the end of a parse string.

The Taskbrowser refused to parse 'foo=true' because keywords implicitly assumed something
was after it. Users had to write 'foo=1' to work around this. Now we allow to parse a keyword
at the end of a line or end of parse string.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
scripting: protect FSM execution and tracing against self-deactivation

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>

Conflicts:

	tests/state_test.cpp