Fixing form_show_labels helper attribute to work with all layout objects