Fix bug when using Include and Exclude with incovertible types.