A study finds small-scale tree cover in Costa Rica boosts biodiversity while limiting dangerous mosquito species.