(core) fix a bug in the actor merger, multiple invocations of the same action were not supported. Simplify a bit the code as well.