So your vote would be for the 50mm and later down the line get some sort of wide-angle zoom? Good point about the 40mm being a sort of awkward focal distance to have in a prime.
Sort of. My vote is to get the 50 mm f/1.4 if it's only between these two lenses. Ideally, I think you'd want an 18-50 mm f/2.8 (or a 24-70 mm f/2.8 type lens that I own), and then one fast lens such as a 35 mm f/2, 50 mm f/1.4, or something similar.
Personally, I'd go with a wider 28, 30, or 35 mm f/1.4, f/1.8, or f/2 instead, and then get an 18-50 mm f/2.8 (or 24-70 mm f/2.8) later on. Or maybe get the zoom lens first (more versatile) and then get a 50 mm f/1.4 or 30 f/2 prime later. I think 28-35 mm is a better range for shooting people when indoors, and indoor shots in general, while the 50 mm is definitely better for shooting outdoors. My choice would depend on what you plan on shooting. When I want to take low-light shots, it tends to be of people, and I need a wider lens to take indoor group photos, or photos of a room, etc.
I'm also making this recommendation as someone who owns a 50 mm f/1.8, but wants to buy a Sigma 30 mm f/1.4, as I don't use the 50 mm f/1.8 as much as I thought I would. Of course, lots of people swear by the Nikon 50 mm f/1.8 and f/1.4 lenses, and find them VERY useful, so what do I know?