Adapt to perl-5.20.0, where an integer can get encoded as an NV without the PV flag being set