Added equals function to array index; remove call to layout from array.value