Check if enum before delegating method visitor. Closes #14