Fix: accept scalar or array in media_resource.filter