update extra, extrasub and arr for type and array type