More refactoring, improved template
Fix critical bug in TonicFrames::copyChannel