re-implemented support for arrays, vectors. fixes #4