Fixed rconf template generator to always include 'this' when necessary

Change-Id: Icdf2de2304d1156b0a3be7646bc22b51ef5810e0