Last LB302 fixes for now (I hope!)

All issues should be fixed now as far as I can tell. I also did a bit of cleanup of the code but it could stand to be cleaned up a lot more - coding style is inconsistent with rest of LMMS, and none of the members are marked with m_ which makes it hard to read since it's hard to remember which variables are members and which aren't.