gcylc: update family hierarchy in case of reload.
Added a test to insert a task added by a reload.
PEP 8 for previous commit.
Merge pull request #1209 from hjoliver/gcylc.fix-task-added-by-reload

gcylc: fix task added by reload