added support for C-style arrays