resolve extended interfaces recursively. Fixes issue 1289.