Updated to properly handle array arguments.

Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>