This tests that itemRef and itemRef.length must be read-only.