Make bibref query case-insensitive

See commit messages for more details.

This addresses tobie/specref#22
Why are we doing this in the fly?