Ascribe return-types in generated methods

Thanks to @vjovanov
Fix #81: Improve speed of field lookups