messy workaround for getting INT32_MIN

the original avro code was rather brittle on this (not clear how one can use thse in a non-brittle way