Fix issues with EncogProgram that returns enum