Pass a uuid by const reference.

Addresses D708.