Maconochie, Allan, -1816, Lord Meadowbank (No. 1); Scottish judge