Merge "TIF: Use the right size for calls to toArray() instead of 0" into mnc-dev