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.
I've already added this, but I think git will be smart in this case