fix list iteration in PropertyGroup::clear