Output_If modified to template class: write(T&) instead of write(BGPMessage)