Fix reference counting bug in table coercion expressions.
Fix potential mem leak in remote function/event unserialization.

I say potential because a code path to get in the required state is
not obvious (if one even exists).