Matrix pinv: replace indexing with .pop().

I mistakenly assumed expr.atoms returned a list, when it actually returns a
set.  Therefore, I tried to use indexing to access the one expected item, but
must instead use set.pop().