Added support for embedded arrays within MongoDB documents
(cherry picked from commit 61e21a0a2d9d79b91e5e8692a7c1f3e7cc77cf83)