add missing header <cstddef> <tuple>, change to function template, and some fixes.
Merge pull request #1 from bolero-MURAKAMI/master

add missing header <cstddef> <tuple>, change to function template, and some fixes.