I don't know of anything prohibiting a return of contribution from being done in-kind, but I don't think any financial institution would do it. The amount distributed must include any gain or loss attributable to the contribution being returned and it would be difficult to comply with that requirement unless the distribution is made in cash.