Can map arrays containing records.
Added test for a document containing a field with a list containing a document.
Can map documents containing lists as attribute values.
Refactoring.