Allow for visitors to be passed as rvalues

This patch enables visitors to be passed as rvalues to `apply_visitor`.

Fixes #10.