[WIP] Fix for addToAllTCATypes not working with after:palette

Change-Id: If91eff68b3801dfeeec975e9210728275ef2a4dd