Improved constness of sol_adapter. Fixed array foreach test to compile