typed actors

this patch adds support for typed actors as well as unit tests for
this new feature