Various improvements and fixes for statusline.