fixed segfault when undoing changes to the array (need to design a new undo type for this, so for the time being undo is disabled for this action), fixed incorrect type of plot upon creation.