fix: ignore function and method on to_primitive
If an object is a function, or a method of a class, it will be ignored on coverting to primitive data structures. ( Use inspect module internal, callable is not good checker, for an instance of a class is also callable.)