Support sending js objects from game to render process as method arguments. Also fix some wrong debug prints due id format change.