Add support for arguments to do_in_context

So that std::bind isn't needed.

Closes #33.