Fixed unused parameter warnings in optimized builds.
Now using const_entry_proxy for const-access for vectors and matrices.

This caused a compilation failure previously. Also, access index for matrix was computed incorrectly.
Fixed GMRES: Reported wrong estimated residual, hence terminated prematurely (or never).