Add and use accessors for GCode::last_pos.