[PL] Move initialization of local mat/vec to init.

This also changes the locas assembler builder.
The test is updated.
[NL] Add shape matrix reinitialization.

Used for dynamic size matrices and there
is almost no overhead for fixed size matrices.
[NL] Add commented dynamic matrix policy.