Test and fix for a bug with getAllExecutables() that does not recurse into the type hierarchy for CtInterface.

Subject says it all.

This pull request comes with a fix ... and a test (private joke for @monperrus)

Lionel.
Thanks Lionel for the pull request. Could you please indent this assert? --Martin