Use Array with correct runtime type so no ClassCastException occurs when
accessing public field items
Merge pull request #1217 from shasait/cherries

Fix runtime type of Array.items to prevent ClassCastException