array_unique casts items to string

array_unique casts items to string for comparison because of it's default parameters. I simply changed the default sort_flag parameter to prevent an exception from being thrown.