change API of generated code to remove concept of 'null'; now, nullable children have _has_ and _clear_ functions