Start adding const modifier where possible

Not finished yet.