Optimize TickTask (reduce footprint of copying), code formatting.