Various bug-fixes for the StyleManager-API.