If the data shape and ref do not match try squeezing the array and checking again before throwing an exception 