resolve extended interfaces recursively. Fixes issue 1289.
R=dimvar