libfreerdp-codec: cleanup and fix insufficient rectangle array size in region16_union_rect