native parser #calcHeadSize can now handle objects and buffers