Add tests for issue #3626
Try to predict a correct number of taylor terms for function expansions with non-atomic argument, e.g. sin(sqrt(x)).series(x)
Fix test_code_quality.py failure: trailing whitespace in polytools.py
Merge branch 'master' into 3626
Merge pull request #1816 from skirpichev/3626

Fix for #3626

Function._eval_series() does wrong prediction for number of taylor
terms if the argument of function is non-atomic.