Added sanity checker for various types to ensure that no duplicates are inserted. Found out that PTRs don't work the hard way.
Added some fixed testcases+code to deal with non-set ttl (=> code still should work unbroken, yay).