Need attributes saved from non-zero ranks

Created by: pnorbert

In situ viz libraries need this feature. They may create variables and associated attributes on the local ranks but attributes only saved from rank 0. We need to merge in attributes from other ranks if they don't exist on rank 0.

I have created a test for this in PR #711