currently it uses default SORT_STRING flag, which coerces each array element into a string. this fails if the array elements are objects
SORT_REGULAR then compares by object properties and it works ok
check here for more explanation http://stackoverflow.com/questions/2426557/array-unique-for-objects