added create_doc_element_list to transform doc list to an element.

It is very useful to implement mongo query operators.
It will exist anyway, so why not share it.