Performance improvements to event tracing.

* Avoid CopyOnWriteArrayList iterator construction (use a simple
  array and iterate over that) for event hook list
* Use int[] to represent line number hit counts.
* Fix int[] size checking to avoid excessive allocation.
* Fixes to trace correctly in compiler without Backtrace.
[build] fix the osgi and complete profile to pick the right stuff
[build] * run install goal on maven-integration-tests
* make sure changes in src/templates will be used with out mvn clean
make the test if native is loaded more robust