Fix folding bug in case of composite types.