[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
It can just be new ModelNode(). In all cases in the switch the ModelValue inside the node is replaced, so the cost of cloning is unnecessary.