tpt++: make constants in the lua api's a lot easier to write c7ce3fa4b23bf14222af6403de36a501a05637a1
tpt++: fix sim.NUM_PARTS, other small changes 2119343b6a76 0f5d0859b451