[utils] fix dtype in get_residual_norms
[deflation] use pseudopy.NonnormalAuto