Generate BoxedType methods for accessing fields

Generate methods for accessing individual fields by name within a boxed
type. This performs basic type checking before using the correct
getelementptr incantation to access the field.