Fix behaviour for ufunc(q, out=q)