Convert data to a pure array.

This is necessary for nested documents.