Fixes issue where duplicate assets can be required with sprockets.

- addresses the problem by calling flatten on asset array before calling uniq.
- adds note to CHANGELOG.
Merge pull request #8735 from jejacks0n/duplicate_asset_fix

Ensure assets aren't duplicated when using sprockets require.