refactor blackbox.clear()

Is now usable with arrays