Mapgens: Rename m_emerge to prevent name collisions
LuaPerlinNoiseMap: Prevent invalid memory access when attempting to generate 3d noise with a buffer created for 2d