Added default method implementation for type() of Shared interface.
Added default method implementation for type() of Shared interface.

If not overriden/redefined, type() method returns Serializable.class.
hpdcj/PCJ,lukeg/PCJ