tlv-hack: Fixing bugs with TLV->NDNb re-encoding

There was an incorrect assumption that compiler will handle uint64_t
with C-style "%d" formatting.

Change-Id: I7b7c8909a3d6fa477928ad6bacb636bb47c22526