fixed fact interpolation using deep iterate
reduced duplication in mongo backend