I would recommend that you'll let AA to do the ticketing to avoid those BA fuel surcharges. AA agent in Sweden is very knowledgeable and efficient in this and they will certainly allow ARN-LHR-DXB-LHR-SFO routing w/o any problems whatsoever, as long as you are within the stopover limits.