GMemoryInputStream/GMemoryOutputStream: fix bug in previous commit