Added traits to OopToJson. Fixes #6