Fix type check for returing array size in bytes.