Updated test for proper array handling.
Updated package.json for npm publishing.