Regarding Twinmold, I guess it was the power of that wizard from Yoshi's Island that made it big, while in the processing of resizing that Piranha Plant. Might of also got some of that magic onto the Giant's Mask too. So therefore the baddies technically helped Mario too!
The jungle/swamp area is apart of YI's world 3 too - and Woodfall even connects with Stone Tower!