memory: Add MemoryListener to typedefs.h