Fix array bug

This was little more than a missed variable name change but it caused
problems when updating values of type array. This commit fixes those
problems.