Arsenal striker Eddie Nketiah has signed a new long-term contract at the club, completing a remarkable turnaround in fortunes.