Cse on indexed

cse chokes on Indexed instances at the moment. This PR is meant to fix that.
See https://groups.google.com/forum/?fromgroups=#!topic/sympy/nf88XzeF9Wc

Tests need to be more precise.