Initial port of ListContains condition to 8.x

misses test coverage for entities