Fixed|libcommon: P_CopyLine() must also copy the Linedef's tag

Also added some new fatal error conditions which I believe are the
cause of various XG runtime bugs.