Ensure to mark methods in json extension as modification safe

Also see https://github.com/rubinius/rubinius/issues/2710