adjust parser tests; fix discovered bugs.
update .gitignore.