Add command for storing a value on a stack position

Targets #331.

Please comment, I don't know whether this PR fits the idea.