Move child_inserted into VirtualMethods.

Follow-up from #1984. r? @jdm