Add support for mixed tuplets, and reset keymanager on bar.