aggreg: add mem_alloc class
aggreg: store keys/udata in mem_alloc
inline aggreg.alloc/free
aggreg: add -d to help text