Revert "extend eachComponent and flattenComponent functions"
Revert "extend eachComponent and flattenComponent functions"

This reverts commit 402ecf327140c2631a75112e35aa81b0ad76256d.

formio/formio.js,formio/formio.js,formio/formio.js