Remove unused stuff
Add random test to test.lua
Fix a capnp.write_val bug which cause writing 8 bit -1 as 32 bit -1