better Pkg.hasBraces heuristics