Implemented MarshalByRefObject on some types

Signed-off-by: Martin Evans <martindevans@gmail.com>