Add arity typetrait
Merge pull request #586 from mflamer/master

Add arity typetrait