Open/close the stream generically in GimpData. Improves error handling and simplifies the save() functions.