Add ability to store values of arbitrary size.

Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>