Distance functions with dense singular sets