Improving subform blank synching

Now it happens in readelements right after entries are written, and does
not depend on determining the parent entry.  We can get the parent entry
based on the fields that were written, or on the submitted value from
the form.