Fix integer serialisation on 32-bit systems

Signed-off-by: Joe Stringer <joestringernz@gmail.com>
TLV: Document int_to_bin

Signed-off-by: Joe Stringer <joestringernz@gmail.com>
Merge branch '32bit'