NEW! Capability to put resource arrays in the cache

Making test setup easier, structuring the code more nicely,
and a useful feature. Not bad for a day's work!