Fix regression in previous release when optimizing `(::)/2` calls