3594:factor should return unhandled expr unchanged

TODO: merge

http://code.google.com/p/sympy/issues/detail?id=3594