Small cleanup in input error parser, also added support for sql.Null* types