util: In DynamicBuffer.slice, allow the end param to be optional.