Constrain the number of occurrences in an array

In reply to ABD_91:

Just FYI, I would prefer creating c_inst inside new function of txn class instead of creating inside pre_randomize phase.