Update in_array() check to avoid fatal error

Enabling the $strict parameter to true avoids PHP's default behavior when search for an array in an array, which throws a fatal error if circular references exist - http://php.net/in_array#refsect1-function.in-array-parameters
Merge pull request #3089 from jameswatts/feature/dbosource-circular-reference

Update in_array() check to avoid fatal error