added comment for refusing _RESET_ in modal dialog. Fixed bug in array size calculation when having more than one array