Use dot notation for accessing array members

Signed-off-by: Michal Čihař <michal@cihar.com>