templated the stored type of the NTuple
minor bugfix