Partial Invariants, Large-scale Dynamo Action, and the Inverse Transfer of Magnetic Helicity