Create a store for langchain Document objects from a bytes store.
This store does run time type checking to ensure that the values are
Document objects.
A bytes store to use as the underlying store.
A function to encode keys; if None, uses identity function.