Implement variadic template factories. Fixes #140.