Make sure enum constants are valid