Vectoriser: only treat a function as scalar if it actually computes something