rep.ir function

Replicate ir objects