Revert "Merge #112 r=@jiahuang: swap lua to use tointeger"

This reverts commit 54f768b32e59d5aca0905e52a91c203035ab5069, reversing
changes made to fcdd9a1998ee1e26c3350abc098807b064c8d215.