[utils] fix bugs in arnoldi_projected