Fixed preprocessor method transformAllCustomEventsToBasicLanguageStructures

and all its sub methods