Perform deep comparison on array().unique()

Fixes #497.