Added optimisation for merging of value type collections.