Add array element id constraint