Generalize check of level in aggregators
Fixes population/shape recusrive call