Fix warnings in basic suite (#782)

* Fix "ignored typedef" warning

* Fix "returning reference to temporary" warning
2 files changed