Changes to implement SObject_x base class and serialise method

https://github.com/afawcett/apex-toolingapi/issues/6