Reordered signatures to match those of lua.h, it was getting confusing when compared to the pure calls, these are impure calls.