Fix roottest failure when generating headers' list for dict-selected classes