Some prior convictions may be dismissed under new California legislation