Type-independent autoarray (still testing)

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>