Add helpers for service inheritance chains.
Tweaks to generator API.