Fix object casting bug in array_column

There is a bug when an object variable is passed as a second or/and third parameter to array_column. The variable is cast to string - it means that the variable change type after calling array_column which does not seem as a correct behavior. This patch fixes it.