fix up xxx[?] types to be functions not ffi types as luaffi happier