inspect() wont output the proper string of function when writes a object into a file. use a custom tostr() to solve it. See #18.