Core: Apply const to some functions
Merge pull request #783 from lioncash/consts

Core: Apply const to some functions