CompoundError#forField returns null when no error
added 'flatten' option to CompoundError#serialize

this makes it possible to easily get a list of the fields for which
there were errors