[loose parser] Be more careful about calling resetTo

It will try to eat whitespace, and can thus raise an unterminated comment exception

Issue #375
Fix start position for HTML comments and add tests.
Do not throw syntax error if strict mode function has same name as one of its parameters.