Add error type in error message object and setting type in types messages when a typeName is setted