Refactored keysigs.
Refactored timesigs.
Refactored tuplets.
Some more keysig refactoring.
Minor refactoring.
Fixed warning.