Properly mark the 'const' state of a fonction's return type.