optimize for tail recursion in ReadItem
revise what's INLINE in serialize.c
make AddReadRef better as inline by moving rare stuff out
more optimization in serialize.c
yet more optimization in serialize.c
more tweaking