bundle id check + better error reporting

Added ParserDebug so we can debug the parser. For now it is depended on the cf-promises -d flag.
Added a bundle_id type check
Changed the error code and use yytext to report the faulting token.