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

During parsing, properly mark the 'const' state of a function's return type.