Fix for enum bugs and maxLength validator bug on byte[] + tests