Allow regexp in sml/hidden-modes.

Factor out sml/remove-hidden-modes.
Improve doc of sml/hidden-modes.
Implement feature request #46