Ensure assets aren't duplicated for debug.

When debug=true assets can require the same file multiple times -- this ensures that even if several files are included using javascript_include_tag only one dependency file will ever be included (even if multiple files require it).