Add array to register assets

This commits resolve #3209 . Hope you like it.

Thanks,
It would be more flexible to check that the `paths` object responds to the `:each` message rather than checking specifically for an Array instance.