Fix coordinate math with DatasetArrays

Note: this was already a bug, but it's more cleanly fixed with this patch.