I don't think the idea is that laws specifically need to prevent people from being forced to make wedding cake. Rather, wedding cakes are a single example of the more general idea "lwas have to prevent people from being forced to do things in general". Each individual item in that category isn't important by itself, but cumulatively they are important.
Rather, wedding cakes are a single example of the more general idea "lwas have to prevent people from being forced to do things in general".
So, how does this apply to your comment here?
Over at Scott Adams' Blog you can find a very fine example of using the 'Rationality Engine' to solve the social problem of assisted dying.