Use UI.dynamicTemplate rather than iron:dynamic layout. Change in API for providing template.