Fix quote docs

Closes #1949.
Handle unary ops when converting typespec to ast