Fixed rendering of text panels so functions would be output too, they needed to have the toString method applied in order to render with the rest of the object after JSON.stringify.