Use arrays for storing layer/line ids instead of an heavy list of tuples
Split gcoder.Line current_pos tuples into standalone attributes