Changed block parameter type "Document" to "DocumentId", since we only store IDs in blocks parameters.
Fixed circular cascaded edition check.