Use reference for giving a weight constrain in SigmaPi layers.
Add higher-order node constructors (third, fourth) for SigmaPi layers.
Adjust testcases.
Weight derivatives needs to sum up for shared weights
in SigmaPi layers.