Geometry of generalised spaces of persistence diagrams and optimal partial transport for metric pairs