Templated property getter doesnt work in most cases (ColourRect for example)

Issue #968 resolved
Lukas Meindl
created an issue

Fixed it by changing the function to const

Also adapted a function to not use an unnecessary double-string conversion for that matter

Reproducibility: always