Adapt to new nalgebra traits + implementation of boxes.
Fixes to make things work with the new compiler.