AST helpers for recognizing CommonJS and AMD types