name handling for checkboxes

Checkboxes generated now gets a name based on the initial name of the select (which is removed from it by the way).
For example, <select name="test"> will generated checkboxes like this :
<input type="checkbox" name="test[]" />