allocator: Mark arguments as const.

Just so I don't try to change them.