fix reflection class array cache
fix getBundleName for symfony bundles
add some tests for BundleHelper