Manually set document store length on set()

Using Object.keys(store).length is very expensive and dramatically slows
the indexing process for larger data sets.
Build version 0.5.6