Fixed bugs in array declaration,init&assigment