Correct to use set like behaviour of AllocType. Should check for subset, not precise value.
Looks good to me. I will commit it unless anyone objects.