[WFLY-572] : "Cast" model nodes in AttributeDefinition validateOperation()

Convert the attribute in operation to the expected ModelType when it is possible.
Jira: https://issues.jboss.org/browse/WFLY-572
if this.type == node.getType() there is no need to do any other conversion.