Always insert explicit semicolons between statements, this avoids a parse error when instrumenting assignments after function declarations. Add test cases.