Some tokens only worked in upper case, fixing that.

As we discussed in #108, this is your patch with some more tests around it. I also found that bind supports $ORIGIN and $TTL in mixcase too and added fix for that.
This one is addition to it. There was only change to zscan but this one looks logical to do in order to support things without doing toUpper again.