Fixed rwMany Function Call

Missing array index value & wrong type check case statement