Fixed #4 creating a deep copy of the itemDefinition.parameters array to
avoid unwanted definition modification side effect.