fix diff generation for scheme using literaleval, and front end expand/collapse