Support enum arrays, handle enums in a more standard java fashion, log enum errors