Avoid invalid memory access when processing dimensions
Free memory allocated for step and block stats
Clean up memory leaks from the write group structure
Merge branch 'fix-valgrind-errors' of https://github.com/chuckatkins/ADIOS
swap condition to original in bp_utils.c which was mixed up in commit a80530eddbd5