JSDocTypeParser: small refactoring

JSDocTypeParserBase -> parser.util.CharStreamUtil
parse(input, autoUnion) -> public
parser: ASTVisitor class generator
cleanup: deprecate reportUnknownType() with 4 parameters
RLocalType changes to avoid recursion
formatter: correctly check if function is a declaration
validation: drop NotExistingIdentiferValidator as now they can be validated directly
validation/tests: variable used in for-in loop must be declared
validation/API: TypeInfoValidator.runDelayedValidationsFor(references...)
forEach has an optional thisArg parameter