Update device number format for primary devices

Small change to primary devices (coils, lamps, switches, and gi) so the
the hardware platform returns their number along with their object when
they’re created.