Paramat's edit of mapgen_v6.lua: Bugfixes. Perlinmaps for speed