Make ghpringbuf_at() return an item ptr instead of copying item.
Adapt test case to new API.
Fix printf format string warnings.