Bug 849412 - Functions are logged as "null" in Addon SDK content scripts

- Updated the `replacer` for JSON.stringify in order to propagate functions as string