Improve NTuple interface and tests