A judge overstepped in throwing out a class action against two National Australia Bank units over alleged MySuper mismanagement because of a carveout in the Victorian Supreme Court Act which bars class actions involving trust property, an appeals court has heard.