better loadNpmTask injection

I managed to add string arrays as an input for loadNpmTask; I also modified the existing test and README
Pretty unclear to me what this filter function does? It handles sparse array?