Some sanity checks for data as an array. Fixes #21