A study of dozens of city gardens and urban farms across the US and Europe found several ways to boost their benefits, not just for their neighborhoods, but for the planet.