Compiler: Fixed type derivation for attributed getters.

The getter/setter variable should now get the correct type even
when the getter/setter functions have been marked as deprecated.
Build: Get rid of some C++-style comments.