Add flatAppend and flatConcat methods to codec