Add test for bug in piecewise integration

*  Integral(exp(x*t),(t,0,y)).doit() fails
Fix bug in Piecewise._eval_interval

- now has a consistent return form
Merge pull request #2557 from zanzibar7/bug_piecewise

Bug piecewise