Use a stricter check for a dictionary when building related resources

Use a stricter check for a dictionary to prevent false positives on model objects with an items attribute