Low-dimensional singularities with free divisors as discriminants