Apply self operator `.` to arrays.

The self operator `.` was not working correctly when applied to arrays.

Closes #33.