Add some static checks in unittest builds to make sure send/receive compile for a certain set of types.