REF: implement putmask for CI/DTI/TDI/PI
Avoids casting to ndarray which in some cases means an object-dtype cast.
merging but if possible to followon for a) additional testing and b) any perf issues and c) EA api