Supporting the -except flag for upload outputs

Summary:
Improving handling of arrays, and adding the --except flag.

Minor fixes

minor fixes

Test Plan: updated unit tests.

Reviewers: psung

Reviewed By: psung

Differential Revision: https://phabricator.dnanexus.com/D66