Changed ErrorDict and ErrorList to be able to store and use ValidationError instances.