fix bigint/bigfloat segfaults on centos/fedora