fix bug where accessors are not generated for nillable properties