bug fix https://github.com/AdeleResearchGroup/ApAM/issues/74 (message type validation at compilation)