The hubble space telescope cluster supernova survey. V. Improving the dark- energy constraints above z > 1 and building an early-type-hosted supernova sample