I/O fixes

For I/O actions where no ERR or END handler is specified, throw a
runtime error. Also throw a runtime error for FORMAT statement and
number parsing errors.