Directly encode either the `ak.type` or `ak.layout.form` to simplify translating back to arrays in the user side.