Fix bug in formatToStave, and more cleanup.
Fix bug in formatToStave, and more cleanup.

spencerhitch/vexflow_extended,IcculusC/vexflow,burnnat/vexflow,velochy/vexflow,Daremyth/vexflow,aerhard/vexflow,winning1120xx/vexflow,vikeen/vexflow,Charlie-Wellesley/vexflow,wander2001/vexflow,ringw/vexflow,nybbs2003/vexflow,jbernie2/vexflow,jdowner/vexflow,amitgur/vexflow,bsouthward/vexflow,ssoRL/vexflow,avorio/vexflow,zhhz/vexflow,Kosar79/vexflow,guert/vexflow,dfcreative/vexflow,vikeen/vexflow,redreamality/vexflow,jmahmud/vexflow,johndpope/vexflow,dhruvrajan/vexflow,winning1120xx/vexflow,Daremyth/vexflow,aaronmars/scottish-writer,IcculusC/vexflow,bsouthward/vexflow,incompleteopus/vexflow,alexmao86/vexflow,aaronmars/scottish-writer,mwicat/vexflow,lasconic/vexflow-musicxml,IcculusC/vexflow,JanvanCasteren/vexflow,Huji/vexflow,jmahmud/vexflow,niklasgrahl/vexflow,JasonLil/vexflow,guert/vexflow,vmoll/vexflow,dhruvrajan/vexflow,pinxue/vexflow,springzh/vexflow,Nairam/vexflow,DigitalCoder/vexflow,bsouthward/vexflow,voidest1/vexflow,amitgur/vexflow,humnotation/vexflow,JasonLil/vexflow,springzh/vexflow,spencerhitch/vexflow_extended,zolaemil/vexflow,fabienric/vexflow,zex713/vexflow,mcanthony/vexflow,Silverwolf90/vexflow,velochy/vexflow,ssoRL/vexflow,aaronmars/vexflow,toni07/vexflow,zex713/vexflow,johndpope/vexflow,avorio/vexflow,raffazizzi/vexflow,jcrogel/vexflow,humnotation/vexflow,Petezah/vexflow,redreamality/vexflow,fgeorgy/vexflow,zolaemil/vexflow,mwicat/vexflow,FatPanther/vexflow,jcrogel/vexflow,bwbohl/vexflow,liuyang1204/vexflow,cgamache/vexflow,lasconic/vexflow-musicxml,Fabrico/vexflow,bpartridge/vexflow,vmoll/vexflow,spencerhitch/vexflow_extended,shuanzi/vexflow,mcanthony/vexflow,Charlie-Wellesley/vexflow,arthurian/vexflow,zex713/vexflow,mariushe/vexflow,Mdonmounts/vexflow,jcrogel/vexflow,gaborveszpremi/vexflow,Huji/vexflow,cpill0789/vexflow,Fabrico/vexflow,mwicat/vexflow,LarryKu/vexflow,cgamache/vexflow,jdowner/vexflow,shuanzi/vexflow,cute/vexflow-musicxml,lasconic/vexflow-musicxml,burnnat/vexflow,bpartridge/vexflow,Kosar79/vexflow,ecompositor/vexflow,DigitalCoder/vexflow,bpartridge/vexflow,Kosar79/vexflow,zachledoux/vexflow,LarryKu/vexflow,LarryKu/vexflow,natedsaint/vexflow,redreamality/vexflow,jbernie2/vexflow,clecap/vexflow-musicxml,RSid/vexflow,jmahmud/vexflow,ohoushyar/vexflow,Tails/vexflow,avorio/vexflow,bwbohl/vexflow,Petezah/vexflow,nybbs2003/vexflow,pinxue/vexflow,natedsaint/vexflow,petehamilton/vexflow,rukor/vexflow,voidest1/vexflow,Tails/vexflow,Daremyth/vexflow,DigitalCoder/vexflow,voidest1/vexflow,guert/vexflow,wander2001/vexflow,nybbs2003/vexflow,Chipairon/vexflow,cute/vexflow-musicxml,ssoRL/vexflow,mcanthony/vexflow,petehamilton/vexflow,aaronmars/vexflow,fabienric/vexflow,arthurian/vexflow,Mdonmounts/vexflow,humnotation/vexflow,dhruvrajan/vexflow,trinketapp/vexflow,arthurian/vexflow,vmoll/vexflow,rukor/vexflow,incompleteopus/vexflow,winning1120xx/vexflow,cpill0789/vexflow,clecap/vexflow-musicxml,fabienric/vexflow,fgeorgy/vexflow,mariushe/vexflow,liuyang1204/vexflow,Petezah/vexflow,petehamilton/vexflow,ecompositor/vexflow,aaronmars/vexflow,zhhz/vexflow,ecompositor/vexflow,JanvanCasteren/vexflow,alexmao86/vexflow,niklasgrahl/vexflow,cgamache/vexflow,Chipairon/vexflow,pinxue/vexflow,natedsaint/vexflow,cpill0789/vexflow,toni07/vexflow,ohoushyar/vexflow,rukor/vexflow,springzh/vexflow,toni07/vexflow,zachledoux/vexflow,RSid/vexflow,JasonLil/vexflow,aerhard/vexflow,dfcreative/vexflow,cdosborn/vexflow,bwbohl/vexflow,cdosborn/vexflow,raffazizzi/vexflow,gaborveszpremi/vexflow,toni07/vexflow,ohoushyar/vexflow,aaronmars/scottish-writer,trinketapp/vexflow,clecap/vexflow-musicxml,Tails/vexflow,Mdonmounts/vexflow,wander2001/vexflow,JanvanCasteren/vexflow,velochy/vexflow,Silverwolf90/vexflow,raffazizzi/vexflow,Huji/vexflow,niklasgrahl/vexflow,Charlie-Wellesley/vexflow,Nairam/vexflow,jdowner/vexflow,dfcreative/vexflow,gaborveszpremi/vexflow,incompleteopus/vexflow,FatPanther/vexflow,clecap/vexflow-musicxml,zolaemil/vexflow,fgeorgy/vexflow,burnnat/vexflow,aerhard/vexflow,cute/vexflow-musicxml,FatPanther/vexflow,Fabrico/vexflow,Silverwolf90/vexflow,alexmao86/vexflow,Nairam/vexflow,amitgur/vexflow,trinketapp/vexflow,cute/vexflow-musicxml,liuyang1204/vexflow,Chipairon/vexflow,cdosborn/vexflow