swap lua to use tointeger
rename to TM_TO_UINT32
Merge #112 r=@jiahuang: swap lua to use tointeger

goes with https://github.com/tessel/runtime/pull/637. also fixes https://github.com/tessel/firmware/issues/107