lua: dc and servo motors: type attribute is 'name', not 'type'