Added a better error message if expanding array formulae fails