toDataStoreValue

Translate the given value to its datastore equivalent. If this value
occupies multiple columns, return an object array with one element
per column. For relation id columns, return the state manager
the column depends on.