Changes for all the late feedback of pull request 8720.

Including fixes for #8850, #8851 and #8852 as they are closely related to the changes in this pull request. 

Also fix #8865 and #8870 for variable interpolation in LESS.