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