Registers NS with array, minor adjustments

Allow to register namespaces with an array - also returning an array
with the modules;
Adjusted comparisons from == to ===;