Generalize the type of `unit` in the Vector library
Now it can create a unit vector of any dimension
Use `save` in `store`. Fixes #121.

The function `store` is supposed to store arrays to memory.
But it didn't because it relied on the `parallel` construct
which doesn't give guarantees anymore. So we need to
use `save`.