fix(accordion): correct `is-open` handling for dynamic groups

Closes #1297