BUG: Incorrect type specified for enumeration
BUG: Incorrect type specified for enumeration

Fixes #1629 when legacy code is disabled.

InsightSoftwareConsortium/ITK,thewtex/ITK,Kitware/ITK,BRAINSia/ITK,Kitware/ITK,richardbeare/ITK,InsightSoftwareConsortium/ITK,Kitware/ITK,thewtex/ITK,BRAINSia/ITK,thewtex/ITK,InsightSoftwareConsortium/ITK,hjmjohnson/ITK,InsightSoftwareConsortium/ITK,LucasGandel/ITK,malaterre/ITK,hjmjohnson/ITK,LucasGandel/ITK,richardbeare/ITK,malaterre/ITK,vfonov/ITK,LucasGandel/ITK,malaterre/ITK,malaterre/ITK,InsightSoftwareConsortium/ITK,richardbeare/ITK,BRAINSia/ITK,BRAINSia/ITK,vfonov/ITK,LucasGandel/ITK,hjmjohnson/ITK,Kitware/ITK,vfonov/ITK,hjmjohnson/ITK,LucasGandel/ITK,InsightSoftwareConsortium/ITK,vfonov/ITK,malaterre/ITK,malaterre/ITK,malaterre/ITK,thewtex/ITK,vfonov/ITK,Kitware/ITK,LucasGandel/ITK,malaterre/ITK,LucasGandel/ITK,BRAINSia/ITK,vfonov/ITK,LucasGandel/ITK,malaterre/ITK,richardbeare/ITK,hjmjohnson/ITK,vfonov/ITK,thewtex/ITK,BRAINSia/ITK,richardbeare/ITK,vfonov/ITK,hjmjohnson/ITK,richardbeare/ITK,BRAINSia/ITK,hjmjohnson/ITK,thewtex/ITK,InsightSoftwareConsortium/ITK,Kitware/ITK,Kitware/ITK,thewtex/ITK,vfonov/ITK,richardbeare/ITK