Make bibref query case-insensitive

See commit messages for more details.

This addresses tobie/specref#22
Ooops, sorry, you are of course right. I read it too fast. It would work but would slow down the tests I guess. Do you want me to change it?