fixed embedded document type in select result set, issue #3212