It works on equality rather than identity. The level of nesting doesn't matter as long there aren't any other elements in any of the nested arrays. In your example, `a == a[0]`, `a == a[0][0]`, etc.