[PATCH] Check number of parameters when reading function from archive.