Use dump cache and remove factory from ReactElement-test

We need to use dump cache because we don't enable it by default internally.

While I'm at it, I might as well kill the ComponentFactory variable which
is now just an alias.
Merge pull request #2435 from sebmarkbage/fixretest

Use dump cache and remove factory from ReactElement-test