Fix case parent issues

Can now specify parents type (if different than child) and a different
relationship on the case than parent_id.