need to desugar quote before checking leaves, so that lambda in quote doesn't error