[stores] StoreClass: allow user to pass in option maxHistory