StreamBuffer.as: optimize getnexttag()