Update machine.m.motemplate to use objc literals (with template-var)

I've amended Brandon's patch to revert to old behaviour if the "nolit" template-var is set.
See #120