Add test and fix for categorical series .shift #10495.
#10495

Waiting for Travis and will review further.

Pls add release note to `doc/source/whatsnew/v0.17.0.txt`
 #10497 fixes this i believe. But pls check.
 #10497 is a much better way to do this
