check both original short ident and redirected ident for being a library function, so redirects to Math.* work