Add a couple of checks to resize_array_formula.py.
Fixes issue where when called on a non-array formula cell it would fail
without informing the user. Also fixes a irritating case where if the new
formula couldn't be set for any reason the old range would get cleared and
not always set back how it was.