[algorithms.newton] add options to return intermediate stages and residuals
[la.gram_schmidt] bugfix
[parameters.spaces] bugfix