Issue #2160575 by agentrickard, amateescu, plopesc: Option widgets integration is broken for the entity reference field.
Issue #2177653 by jessebeach, joelpittet, InternetDevels: Replace theme() with drupal_render() in form.inc.