Create and apply patches for js objects and collections (array of indexed elements).