Alexander Gibson, Lord Durie I — Scottish judge and legal writer