CCD photometry of the BL Lacertae objects 1218+304, 1219+28, and 1727+50 - Point sources, associated nebulosity, and broad-band spectra