Fix combinef in pigpen.fold/vec

Also added test coverage for all combinef functions.