Add generic type support.
Merge remote-tracking branch 'github/master'