Removed const on return values

When returning by value, adding `const` to the return type doesn't do
anything. The returned temporary value is a copy anyway, independent of
the original value in the object.

(fixes some -Wextra warnings)