Robot trace in 2D model

Added "Prepare Marker" and "Remove Marker" blocks starting and canceling drawing robot`s trace in 2D model.
Also critical generators bug fixed and performed small refactoring of blocks working with pre-configured devices.