Fix array being printed into Packages

Fix for array string being printed into Packages - rather than write the array object we write the array joined with newlines.