Merge "Introduce ref operation validation"