Fixed bug where gson couldn't serialize DBObjects.