Revert "Template for dynamic array"

This reverts commit d21a09997c88a1889bdc599d32fea3cf7ba7c8b9.