Fixes stability issue in structure plugin serialization. Fix bug where flats/shaprs weren't selected in a correct way. Adds first version of transposition.