Fixed various typos in layout glossmark updating code
Merge branch 'master' into refdb