bug fix in ASTTypeApp::check

* missing error message in error case
added missing namesema for ast_type_ in StaticItems