Add support for creating unique internal names.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
Implement total order on expressions

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>