Removed duplication from enum code resolve. Fixed problem with Nothing parameger of valueOf #SCL-7500 Comment