Which setting allows both agreement and invariant form?

Ism al-Tafḍīl: Formation, Comparison, Agreement and Parsing