traverse hierarchy for dynamic interfaces ceylon/ceylon-js#362