Save/restore valstack in Ruby ffi wrapper (multi-arg support)