flatten in cases where an empty nested array would confuse join.
Merge pull request #795 from ljrittle/module-support-with-hdfs-mode-in-scald.rb

flatten in cases where an empty nested array would confuse join.