I was being an absolute moron and not adjusting my two access pointers to the data buffer after a realloc.
* Refs became atoms to make sure they can live across calls to the NIF functions. * Initialized curr in decode so that I'm no longer pushing random values into the Erlang VM.
Passes all eep0018 tests.