construct :closed-overs in deftype as field-name -> field
attach the fn name to the generated class name