Celtic beat Partick Thistle 2-1 at Firhill to move four points clear of Aberdeen at the top of the Scottish Premiership.