Added the option to specify an array in `scope` for embedded documents