The WFC3 galactic bulge treasury program: metallicity estimates for the stellar population and exoplanet hosts