fixing two obscure bugs; grids serializing to null, and collapsed groups renumbering improperly