Fixed string to int conversion in array_search().

Because the first value of the static::$units array is integer, strict flag needs to properly search.