Issue #2921358 by mglaman, vasike: Provide helpers to ensure referenced entities match referencer's language code