Fix a bug related to self-referencing in data entity.
Update source compatibility and language level settings.