I will revert the change in this PR. I think @mandli  could take a look at this writer since it is failing for me in branch:master.  The error I get in master says that the object patch does not have num_aux.