Adding std::array constructors to TemplateXXX.

Using std::array is safe, so users should prefer this constructor to the older constructor with pointers.

This is followup of #96.