Make ComposableActor example work. Fixes #2765

This is a forward-port from 2.1.