Rory McIlroy made a spectacular birdie at 13 to move alongside Robert MacIntyre at the top of the leaderboard at the Scottish Open.