define to_dict methods for BaseDocument and BaseField
add test to test to_dict method on Document, EmbeddedDocument and References
add keep_id support in to_dict method