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.
https://gist.github.com/asergeyev/16db89fc6af9654422be