Ascribe return-types in generated methods

Thanks to @vjovanov
Fix #81: Improve speed of field lookups
Merge pull request #82 from gzm0/optimize-lookup

Optimize lookup