Rework OFDataArray API.

Also adds more checks.