store: fix a bug in offsets

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>
store: use references in the public API

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>