Refactored geonames script to output innermost data as arrays, not objects