fixes #8, problem with extended array prototype

suggested by https://github.com/mikeatlas
Thanks!