use copy on write for internal arrays in Store

keep the synchronized basically restricted to write operations.
follow up of #14

Sponsored by Lookout Inc.