This also changes the callbacks a bit to (a) avoid passing references for already ref-counted types, and (b) don't pass PID since the parent knows this and gives it to the child parser. Issue #832 Change-Id: I7dd44436c8d1ad81d42a813d16f850175b85ad1a