forward declarations are now counted individually
fixed some transformations of declarations (mostly arrays with initializers)