Converted collections to types check in recursive_replace
Added json merge on update APIs