core: const correctness

This commit chanages several functions in renderdoc/core to const functions.
Merge pull request #51 from zerhacken/minor-fixes

core: const correctness