Add the `extend` function to VirtualCollection