Interface to plain and typed javascript arrays in haste