compiler/libec: Fixed crash on overriding virtual method with both ; and { } (#951)