Added ProvDocument.flattened()