(Really I guess asserting here is not a nice thing to do anyway, but we're doing it anyway in MemoryReadStream etc, I see.)