modules/tetra: make moonscript more idiomatic