Aberdeen's unbeaten start to the Premiership campaign, stretching 11 games with 10 wins, comes to an end with a 2-1 loss to St Mirren in Paisley.