Correctly distinguish between parent types to avoid ID clashes in the Acted Model

When selecting content that has been reacted to, discussion and comment IDs will currently clash. E.g. if comment 16 has been reacted to, the Acted Model will also query discussion 16 if it exists.

This PR fixes the bug by taking into account the reaction parent types. The data was already available but wasn't being used.