Continue IR gen refactor: make more things use Yang types.