Hamilton, Archibald, Lord, active 1644-1699, Captain