Revert "Allows hashes as enum elements for validation"

This reverts commit 2d53b6d3650ee61344301f6fd3ac67342b4036f3.