[RFC] Full compliance with msgpack-RPC

Should close #1118 
Does `rettv` need to be set for an "early" error?