Enable nested records.

Review by @gzm0 and @vjovanov.