Per-language custom identifier collection works.

Also tests for this.