changes some solver accessors to return references to const