Fix for Issue 281 (can't use numpy.array() on (0,)-shape datasets)

Addresses #281.