Optimized some array calls in functional tests referencing messageList.
Merge branch 'master' of github.com:frontlinesms/frontlinesms2