Add validation/error reporting to VQB. Fix #147.

same  line for else