Allow result types to have type parameters. Fixes #11
Merge pull request #13 from fthomas/parametric-types

Allow result types to have type parameters