The Hubble Space Telescope cluster supernova survey. V. Improving the dark- energy constraints above z > 1 and building an early-type-hosted supernova sample