Clean up theory examples
Small code cleanup (remove debug statements)
Allow user-defined sorts, built-in nat sort in quantifiers
Fix type in user ac function test theory