[ref_impl_eiffel] [839] Improve processing in flattener.

Revision: 839
Author: thomas.beale

Log Message: