Fixed an issue with frozen Fixnums in threaded mode