GMemoryInputStream/GMemoryOutputStream: make these properly subclassable