Fix potential CBOR parsing safety issues
As discovered in our security audit by DoyenSec, there were some potential cbor safety issues, the largest being there wasn't a proper recursion limit to one of the methods we were using from tinycbor
. Now that has been fixed.