Added checked iterators to generate test cases ; Casted size_t to int for test/amp/common/test_common.h