Remove unnecessary use of array_unique. Post types are stored internally using the type slug as an index, so there can't be duplicates to begin with.