Bibtex parser: Fixed some bugs with name resolution.

Now we pass the tests at
http://maverick.inria.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#splitting_examples