add is_array check to checkbox and multiselect control

prevent warning if value is null in case of using in repeating groups in metabox beginning from second group
You may use the following instead:

    <?php $checked = is_array($value) && (in_array($item->value, $value)); ?>