swap lua to use tointeger

goes with https://github.com/tessel/firmware/pull/112
sure