This type of lamp has a G9 base or cap made by folding over the two protruding FerNiCo alloy lead in wires into two loops and folded alongside the flattened pinch seal of the bulb. To remove such a lamp from its socket simply pull it straight out along the axis of symmetry of the lamp. Do not apply any twisting force to the bulb of the lamp as the flattened seal will shear off in the socket and be quite difficult to extract and could cause a laceration injury. Although I have never actually seen a G9 socket I can deduce that it consists of a pair of springy "kissing lips" type contacts fixed into a ceramic insulating, temperature resistant body, between which the flattened seal of the lamp and loops are pushed.
Andrew
June 2009