weakref: make proxy_container into a class; new/delete

Closes #20