[cs] Implement hxgeneric interfaces also on extern classes. Closes #3316