Fixes #999 - template:list throws UnexpectedValueException