Make CreateMemoryField not mutate, like CreateFunctionTableField
Make CreateMemoryField not mutate, like CreateFunctionTableField

This will make it cleaner to factor out the memory and import sections.

RyanLamansky/dotnet-webassembly