Fix missing parameter to Quoted - Fixes #1562
Fix bad json - extra ,
Fix duplicate selectors sometimes generated in extends. Fixes #1591. Fixes #1581
support nested selectors in extends. part fixes #1580