Macdougall, Duncan, active 1778-1789, Ensign