Draft bits of memsink.h (ticket #23).