reference() works with array indexing
Merge pull request #25 from yetanotherhacker/unlimitedrefworks

reference() works with array indexing