Diagnose and fix problem evaluating nested ufunc calls