Fixes issue #217 in Kryo (https://github.com/EsotericSoftware/kryo/issues/217)