Add tests for (and fix) WriteSubset and SelectHyperslab