Scrubs javascript array for duplicates prior to processing since it'll crash minify. [#872 state:resolved responsible:dleffler]