Fixed macro render_checkbox_field to add 'checked' flag.