Clear entity cache after each iteration

in ContainerAware commands. Hotfix to make projects that are getting wrong results usable again. We should think this through somewhat more.