Added support for type annotations in the MessageTemplate message

field specification. Resolves #512.