Fixed iteration over metadata in Kernel::getArgumentMetadata().