Gabriel Martinelli has signed a new long-term contract with Arsenal.