$flags could contain metadata such as the alias under which to register
the element or fieldset, order in which to prioritize it, etc.
Parameters:
array|Traversable|ElementInterface – Typically, only allow objects implementing ElementInterface;
however, keeping it flexible to allow a factory-based form
implementation as well