Added support for exceptions.
Array types were already supported since only type names are written
in comment the actual type.