Strict in_array for mixed id variable types

Setting the in_array check to strict, as this would return true
incorrectly when and if values are of mixed type.

Issue: http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/3545