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

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