Fix runtime type of Array.items to prevent ClassCastException

Related to issues GoogleCode#568 and GoogleCode#1423