Fix issue with validation, links_as_{parent,child}

Fixes resgraph/acts-as-dag#11