Committing @miekg patch from gist.

https://gist.github.com/miekg/f1b1fe6dba7d6b088eec
Added test to verify RRSIG type covered in mixed case.