Fix encoding support with Marshalers
Fix decoding ints

Handle the MinInt64 case since it cannot be represented
as a positive value.