Fixing a bug with asset dependencies.

The addDeps method did not add the correct value to the sorted assets
array. Because of this dependencies had to be declared before the
libraries they depended on. This commit fixes this and assets can now
be declared in any order.