Moved ic_type/category validation outside of for each loop.

Signed-off-by: Joe Whitsitt <joe-whitsitt@uiowa.edu>