Allow defining messages inside the component definition body of the yaml document, so messages that are only relevant to a single component can be grouped more easily. This doesn't need to (but can, if it improves performance) have any semantic meaning, this issue just concerns the yaml layout.