Expanded loops as Dymola cannot expand them.
Revised FFD implementation.

Made surface interfaces conditional. Corrected connect statements.