Loan Merrifield struck early in the second half and France rode out sustained Ugandan pressure to reach the last 16.