Fixed error in ArrayVariable setValue.