add .[] to flatten an array

Fixes #5