DustController.WriteTemplate uses type or typeName