Added some test code to allow the computed arrays to work.

Currently this will work only for integer types.
Needs a lot more work to make it work on floats etc.
Hopefully there is a unified way we can do this?