Use if/else if/else assert(0) pattern to catch any appends that do not fit element or array append