Close to 30 people have fronted a Melbourne court, charged over violent protests outside a controversial weapons exhibition.