Fixed incorrect display of variant attributes

Due to a syntactically incorrect inline function, the string "Array" was passed to the template instead of the correct key/value combination.