Added STACK_ALLOC utility macro
Fixed a bug in memory_input, caught by the varint_fuzz test
Added data field to Varint
Added varint_decodestr and varint_validate
Added sync method to KVDB
Fixed STACK_ALLOC so that it can be used twice in the same scope