Added failing test to reproduce the error with reflection and core classes

See: https://groups.google.com/forum/#!topic/symfony2/PpxQjNcG8BA