Related to #2436 but not exactly the same - trying to save a bytes array in a MemoryStore causes IndexError. It does warn me that I should use bytes at my own risk ...