Fixing const parameters in kernel/object, fixing optimizers, removing unnecesary parentheses