Fix bugs for sonata_type_model_list rendering

updating script template and form template to fix some bugs and handle subclasses creation