[12417] Add support for 'conditioned references'

This allows to use generic conditions (that don't require a player for checking) with loot entries that refer to reference_loot.
So the whole reference is used only if the condition of the conditioned reference evaluates to true

(based on commit [12307] - ebc4672)