Generate mem.store function and dependencies (currently unused)

[#80191662]