add function for getting all items out of an intmap
testgen should exit 1 on finding a bad example