fix #561 attach/detach/ready hooks for children in partial compile blocks