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