Optimisation: don't call julia-in-brackets unless we have to.

Sadly, it's a fairly expensive function.