Reduce toolchanges by giving priority to last extruder on layer change. #940