Quick refinement pass over libcaf message handlers.

Use const refs for params that only need to be read, use mutable refs
for ones that need to be modified/saved -- should avoid unnecessary
copies and possibly exploit libcaf copy-on-write optimization.