Add checks for homogeneous arrays as per #4