These functions would crash when the context argument was None with certain extension types.
Thanks to David Benjamin (Google) for reporting this issue.