convert enum ChunkType into enum class

and adjust entire file to MuseScore coding style