[BUGFIX] Missing array check

Add check in Format utility to ensure that argument
is really an array.