v0.2.2-b: fixed bugs with regex literals and function literals