Added duplication cleaning when reference array are joined
refactored node and mdn parsers