Merge pull request #14 from pfarner/nullable_arrays

RandomEventTest gets farther now, but does not pass.
nint32_array was missing in switch
always use uint16 for array length
updates for logging and figuring out the resetting problem
Don't assume all unknown types are nullable arrays.
Clear unset bitset bits, and pad out to the end of the last bitset byte