Fix a bug in embind when using const return values