Updated ipareplicaarray fact, added replicas2array function, thanks Steve
Updated master manifest and replicaagreement define