added automatic resize of arrays when adding/removing points via ctrl+click, fixed a bug where array is not properly redrawn after a new point is created