Write Class->new as idiomatic Class::->new

Protect against cases like user code defining sub JSON, though primarily
this is a style patch.