Issues regarding reference to const on temporary object resolved