Type parser, added dict to expression parser, further fixing bnf regexes
Added casts to parser, fixes #8