[DDMD] [refactor] Move FuncDeclaration::isBuiltin into a free function