Here are a couple of patches to implement the COPY-CONTAINER operator I missed. I hope I got things right with the formatting and the diffs and so forth.
I did test the thing for the getting-the-lease-object problem, and it worked as it should, in that
(cast (invoke (cast (copy-container w) "System.MarshalByRefObject") "GetLifetimeService") "System.Runtime.Remoting.Lifetime.ILease")
.. will return the correct lease for the remote object w.
A potential issue: I had to rename the copier-function of the CONTAINER-struct to be able to use the COPY-CONTAINER name. I couldn't think of a good alternative, and the struct-copy function wasn't actually in use, so I figured maybe it was ok.
Regards, Iver Odin Kvello iok@selvaag.no