Dump circular JSON even containing function