Fix method of defining inner types in SpectrumWindow, see issue #56