Adding some template files.
Copying a lot of code from earlier dynamic array. Ported to be able to use for the test suite later on.