Entity.document arg check
Rename Buffer.resize => buffer.resize_bytes