Fix some type warnings in lanczos algorithm