Cosmic evolution and metal aversion in superluminous supernova host galaxies