Handle nested braces

This solves #11, as well as a similar bug detecting sticky selectors immediately following `keyframes`.