Optimize primitive calls by avoiding putting the return value on the stack in some cases.
Fix formatting when converting pairs and lists to strings.