store() deps in array, Fixed clean(), added tests

I added the ability to store dependencies through array.
While doing this, I noticed the typeof path === 'array' which does not work.  According to the ecmascript standard, 'array' will never be returned.  This was used in the clean() method.

I made your existing tests more specific to expose the bug, and fixed both.