Enable changing body type from lua

This enables lua to switch to kinematic or static body types as needed.
The default for objects is static, and the default for tilemaps is
static. (You can actually create dynamic, movable tilemaps. God help you
if you do.)