Add experimental code to speed up extension array

- this does not seem to work properly, at least it gets slower. Not sure why, but the casts to indicate null do not help but seem to confuse the optimizer.

Signed-off-by: Stefan Marr <git@stefan-marr.de>