added array indexing support to wrapper classes