Finished improved toString for both BaseObject and Entity.