Word maps, word maps with constants and representation varieties of one-relator groups