storage in values array instead of object fields (fixes #2)