Cascaded over a slice of sugar-crusted apple pie or layered in an English trifle, a batch of vanilla-scented custard is to die for. However, it can be tricky to get right when making it from scratch.