Allow function statements everywhere

Cleanup parsing of blocks
Merge pull request #55 from cesanta/fix_function_statements

Allow function statements everywhere