MemoryStore: fixed a few broken things
Subspace: added EncodeKey(T1) and ToRange(T1) to composite encoder (T1, T2)

- For subspaces with composite keys <T1, T2> such as indexes, it is frequent to need to generate prefix for a single T1 (to call GetRange or ClearRange)