Fix #801 ClassPathScanner fails with enum