Generating "setMember" functions for record structures