- added assertions for out of bounds access and switch errors
- made SetAllocator more generic
- added data object getter to RCArray for debugging purposes