Statics and dynamics of physical linking: from confined polymers to chromatin filaments