several bugfixes, parser enhancements, see forum post for details

git-svn-id: svn://svn.code.sf.net/p/fhem/code@5224 2b470e98-0d58-463d-a4d8-8e2adae1ed80