Added a few regression tests for most basic [] functionality.