Handle nested braces; fixes #11