@cafarm's suggestion for improving unique units

Use cellstr(unique()) instead of unique(cellstr())
Updated test for modern api usage