Support basic inout params for C->Lua

This is a blocker for the libpeas plugin loader as the test suite uses inout args.