Improve unique, do not output arrays anymore