Switch root obj with const. Closes #268