Added a test case that reproduces emf's stack overflow in binary resource save bug.