astobj2: Create function to copy weak proxied objects from container.