Remove free-floating lists

See discussion at https://github.com/json-ld/json-ld.org/commit/614f69b8de0f9b9709cdd599c86632d3844b685e#commitcomment-2606111
Make sure duplicates are removed even if an array of values is passed